package com.yugao.fintech.antelope.member.model.rqrs.user;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import com.yugao.fintech.antelope.base.model.enums.TerminalEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
@Accessors(chain = true)
public class MemberUserRegisterReq {
    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "手机号")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String phone;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "注册ip")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String registerIp;

    /**
     * @see TerminalEnum
     */
    @ApiModelProperty(value = "注册的终端")
    private String registerTerminal;

    @ApiModelProperty(value = "最后登录ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginDate;
}
